package com.rpframework.website.device.domain;

import com.rpframework.core.Domain;
import com.rpframework.core.mybatis.plugin.annotation.FieldMapperAnnotation;
import com.rpframework.core.mybatis.plugin.annotation.TableMapperAnnotation;
import com.rpframework.core.mybatis.plugin.annotation.UniqueKeyType;

/**
 * 商品表
 * @author zhangli
 * @date 2016年3月24日 上午9:47:35
 */
@TableMapperAnnotation(tableName = "t_goods", uniqueKeyType = UniqueKeyType.Single, uniqueKey = "id") 
public class Goods extends Domain {

	private static final long serialVersionUID = 4178996028162534134L;
	
	@FieldMapperAnnotation 
	Integer id;
	/**
	 * 商品名
	 */
	@FieldMapperAnnotation 
	String name;
	/**
	 * 库存警示数量
	 */
	@FieldMapperAnnotation 
	Integer remind;
	/**
	 * 销量
	 */
	@FieldMapperAnnotation 
	Integer sales;
	/**
	 * 商品分类
	 */
	@FieldMapperAnnotation 
	Integer category;
	/**
	 * 商品标签
	 */
	@FieldMapperAnnotation 
	Integer label;
	/**
	 * 相关表 某物业的商品
	 * 相当于estateId 为了以后扩展 命名为relativeId
	 */
	@FieldMapperAnnotation 
	Integer relativeId; 
	/**
	 * 原价
	 */
	@FieldMapperAnnotation 
	Double oldPrice;
	/**
	 * 折扣价、现价
	 */
	@FieldMapperAnnotation 
	Double disPrice;
	/**
	 * 商品图片地址
	 */
	@FieldMapperAnnotation 
	String urlList;
	/**
	 * 商品描述
	 */
	@FieldMapperAnnotation 
	String production;
	/**
	 * 商品积分
	 */
	@FieldMapperAnnotation 
	Integer point;
	/**
	 * 创建时间
	 */
	@FieldMapperAnnotation 
	Long createTime;
	/**
	 * 修改时间
	 */
	@FieldMapperAnnotation 
	Long modifyTime;
	/**
	 * 状态
	 */
	@FieldMapperAnnotation 
	Integer state;
	/**
	 * 库存
	 */
	@FieldMapperAnnotation 
	Double stockAmount;
	/**
	 * @return the id
	 */
	public Integer getId() {
		return id;
	}
	/**
	 * @return the name
	 */
	public String getName() {
		return name;
	}
	/**
	 * @return the oldPrice
	 */
	public Double getOldPrice() {
		return oldPrice;
	}
	/**
	 * @return the disPrice
	 */
	public Double getDisPrice() {
		return disPrice;
	}
	/**
	 * @return the urlList
	 */
	public String getUrlList() {
		return urlList;
	}
	/**
	 * @return the createTime
	 */
	public Long getCreateTime() {
		return createTime;
	}
	/**
	 * @return the modifyTime
	 */
	public Long getModifyTime() {
		return modifyTime;
	}
	/**
	 * @return the state
	 */
	public Integer getState() {
		return state;
	}
	/**
	 * @param id the id to set
	 */
	public void setId(Integer id) {
		this.id = id;
	}
	/**
	 * @param name the name to set
	 */
	public void setName(String name) {
		this.name = name;
	}
	/**
	 * @param oldPrice the oldPrice to set
	 */
	public void setOldPrice(Double oldPrice) {
		this.oldPrice = oldPrice;
	}
	/**
	 * @param disPrice the disPrice to set
	 */
	public void setDisPrice(Double disPrice) {
		this.disPrice = disPrice;
	}
	/**
	 * @param urlList the urlList to set
	 */
	public void setUrlList(String urlList) {
		this.urlList = urlList;
	}
	/**
	 * @param createTime the createTime to set
	 */
	public void setCreateTime(Long createTime) {
		this.createTime = createTime;
	}
	/**
	 * @param modifyTime the modifyTime to set
	 */
	public void setModifyTime(Long modifyTime) {
		this.modifyTime = modifyTime;
	}
	/**
	 * @param state the state to set
	 */
	public void setState(Integer state) {
		this.state = state;
	}
	/**
	 * @return the category
	 */
	public Integer getCategory() {
		return category;
	}
	/**
	 * @return the label
	 */
	public Integer getLabel() {
		return label;
	}
	/**
	 * @return the relativeId
	 */
	public Integer getRelativeId() {
		return relativeId;
	}
	/**
	 * @param category the category to set
	 */
	public void setCategory(Integer category) {
		this.category = category;
	}
	/**
	 * @param label the label to set
	 */
	public void setLabel(Integer label) {
		this.label = label;
	}
	/**
	 * @param relativeId the relativeId to set
	 */
	public void setRelativeId(Integer relativeId) {
		this.relativeId = relativeId;
	}
	/**
	 * @return the production
	 */
	public String getProduction() {
		return production;
	}
	/**
	 * @param production the production to set
	 */
	public void setProduction(String production) {
		this.production = production;
	}
	/**
	 * @return the stockAmount
	 */
	public Double getStockAmount() {
		return stockAmount;
	}
	/**
	 * @param stockAmount the stockAmount to set
	 */
	public void setStockAmount(Double stockAmount) {
		this.stockAmount = stockAmount;
	}
	/**
	 * @return the point
	 */
	public Integer getPoint() {
		return point;
	}
	/**
	 * @param point the point to set
	 */
	public void setPoint(Integer point) {
		this.point = point;
	}
	public Integer getSales() {
		return sales;
	}
	public void setSales(Integer sales) {
		this.sales = sales;
	}
	/**
	 * 库存警示数量
	 * @return
	 */
	public Integer getRemind() {
		return remind;
	}
	/**
	 * 库存警示数量
	 * @return
	 */
	public void setRemind(Integer remind) {
		this.remind = remind;
	}
}
